<?php
class FriendListKey extends ARedisSet
{
    public function __construct($userId)
    {
        $this->name = sprintf('friend_list.%d', $userId);
    }

    public function getMutualFriends($targetId)
    {
        return $this->inter(new FriendListKey($targetId));
    }
}